const mongoose = require('mongoose')

const Schema = mongoose.Schema

const schema = new Schema({
  hy_usdt: {
    type: Number,
    default: 0
  },
  xh_usdt: {
    type: Number,
    default: 0
  },
  hy_usdt_diff: {
    type: Number,
    default: 0
  },
  pre_hy_usdt: {
    type: Number,
    default: 0
  },
  // 持有的盈亏
  hy_usdt_income_rate: {
    type: Number,
    default: 0
  },
  xh_usdt_diff: {
    type: Number,
    default: 0
  },
  xh_usdt_income_rate: {
    type: Number,
    default: 0
  },
  // 提现数量
  withdraw_usdt: {
    type: Number,
    default: 0
  },
  remark: {
    type: String,
    default: ''
  },
  date: String,
  create_at: {
    type: Date,
    default: Date.now
  }
})

module.exports = mongoose.model('AssetRecord', schema)
